# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=lagrange
pkgver=1.13.7
pkgrel=0
pkgdesc="Beautiful Gemini client"
url="https://gmi.skyjake.fi/lagrange"
license="BSD-2-Clause"
arch="all"
makedepends="cmake zip fribidi-dev harfbuzz-dev libunistring-dev libwebp-dev
	mpg123-dev openssl1.1-compat-dev pcre-dev sdl2-dev zlib-dev"
subpackages="$pkgname-doc"
source="https://git.skyjake.fi/gemini/lagrange/releases/download/v$pkgver/lagrange-$pkgver.tar.gz"
options="!check" # no test suite

[ "$CARCH" = "riscv64" ] && options="$options textrels"


build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DENABLE_POPUP_MENUS=OFF \
		-DENABLE_RESIZE_DRAW=OFF
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
7bbc2acc63778d5130ffbaf6c53279c59caadf7a7a4078516e624d6f670ca71cedb4c96f4b19f8280467b9edaf7c71c19e4b446d04a77417a3568cc0a8fc7b59  lagrange-1.13.7.tar.gz
"
